home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
StringTreeModelBeanInfo.java
< prev
next >
Wrap
Text File
|
1998-10-21
|
2KB
|
47 lines
package com.symantec.itools.swing.models;
import java.beans.*;
import com.symantec.itools.vcafe.beans.PropertyDescriptorAttributes;
import com.symantec.itools.vcafe.beans.PropertyHelpIDs;
public final class StringTreeModelBeanInfo
extends ModelBeanInfo
{
public StringTreeModelBeanInfo()
{
setWinHelpKey(m_WinHelpID);
}
protected Class getBeanClass()
{
return m_StringTreeModelClass;
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
PropertyDescriptor items = new PropertyDescriptor("items",m_StringTreeModelClass);
items.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.STRINGTREEMODEL_ITEMS_HELP_ID));
PropertyDescriptor rootName =new PropertyDescriptor("rootName",m_StringTreeModelClass);
rootName.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.STRINGTREEMODEL_ROOT_NAME_HELP_ID));
PropertyDescriptor[] rv = { items, rootName };
return rv;
}
catch(IntrospectionException e)
{
e.printStackTrace();
}
//Error, return no properties
return new PropertyDescriptor[0];
}
protected final static Class m_StringTreeModelClass = StringTreeModel.class;
protected final static String m_WinHelpID = "0x6012E";
}